<?php

namespace App\Http\Controllers\Api\Hotel;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Facades\Services\TourismService;

class TourismController extends Controller
{
    public function getTourism(){
    	return formatJsonResponse(TourismService::getTourism());
    }

    public function updateTourism(Request $request){
    	$rules = [
    		'content' => 'required'
    	];

    	$this->validate($request,$rules);

    	TourismService::updateTourism($request->all());

    	return formatJsonResponse();
    }

    public function createTourism(Request $request){
    	$rules = [
    		'content' => 'required'
    	];

    	$this->validate($request,$rules);

    	TourismService::createTourism($request->all());

    	return formatJsonResponse();
    }
}
